<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link rel="stylesheet" href="css/style.css"></link>
	<link rel="stylesheet" href="css/style_form.css"></link>
</h:head>
<h:body>
	
	<f:view>
		<ui:include src="topo_sistema.xhtml"></ui:include>
	</f:view>
	
	<f:view>
		
		<div class="limite">
			
			<h3>Listagem de Ordens de Produção :.</h3>
			<div class="clr"></div>
			
			<h:form id="form"  styleClass="form_ordem">

				<p:dataTable id="dataTable" var="producao" styleClass="tabela_listagem"
					value="#{manter_ordemproducao.listOrdemProducao}" widgetVar="producaoTable" 
					paginator="true" rows="5"
					selection="#{manter_ordemproducao.producao}"
					selectionMode="single"
					emptyMessage=".: Nenhuma Ordem Registrado .:"
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="5,10,15" rowKey="#{producao}">

					<f:facet name="header">
			            <p:outputPanel>
							<p:inputText styleClass="input_filtro" id="globalFilter" onkeyup="ordemProducaoTable.filter()" 
							style="background-image: url('css/img/find.png');
							background-repeat: no-repeat;
							background-position: right;
							position:relative; width:200px; 
							float:right; margin-top: 5px; "/>
			            	<h:outputText value="Pesquise em todos os registros:" style="position:relative; width:250px; float:right; margin-top: 10px;" />
			            </p:outputPanel>
			        </f:facet> 

					<p:column headerText="Nº Pedido">
						<h:outputText value="#{producao.numero_pedido}">
						</h:outputText>
					</p:column>

					<p:column headerText="Data Entrada">
						<h:outputText value="#{producao.data_entrada}">
						</h:outputText>
					</p:column>

					<p:column headerText="Data Entrega">
						<h:outputText value="#{producao.data_entrega}">
						</h:outputText>
					</p:column>

					<p:column headerText="Data Saída">
						<h:outputText value="#{producao.data_saida}">
						</h:outputText>
					</p:column>

					<p:column headerText="Marca">
						<h:outputText value="#{producao.marca}">
						</h:outputText>
					</p:column>

					<p:column headerText="Unidades">
						<h:outputText value="#{producao.unidades}">
						</h:outputText>
					</p:column>

					<p:column headerText="Editar" style="width:30px;">
					<p:commandButton value="Editar"></p:commandButton>
					
<!-- 						<a href="cadastro_maquinas_novo.jsf" class="links_edit"> <img src="css/img/edit.png" alt="" height="20" /> </a> -->
					</p:column>
					
					<p:column headerText="Remover" style="width:30px;">
					<p:commandButton value="Excluir"></p:commandButton>
<!-- 						<a href="" class="links_edit" onclick="confirmation.show()"> <img src="css/img/remove.png" alt="" height="20" /> </a> -->
					</p:column>
					

				</p:dataTable>

			</h:form>

			<div class="clr"></div>
			
			<h:form prependId="false">
					
	<p:growl id="messages" />

	<h:panelGrid columns="1" cellpadding="5">
	</h:panelGrid>
	
	<p:confirmDialog id="confirmDialog" message="Deseja Realmente Remover?"
				header=".: Etigraf | Alerta :." severity="alert" widgetVar="confirmation" closable="false">
				
		<p:commandButton id="confirm" value="Sim" update="messages" oncomplete="confirmation.hide()"
					style="position:relative; float:right;" />
		<p:commandButton id="decline" value="Não" onclick="confirmation.hide()" type="button" style="position:relative; float:right;" /> 
				
	</p:confirmDialog>

</h:form>	
		
		</div>
		
		<div class="clr"></div>
		
	</f:view>
	
	<f:view>
		<ui:include src="rodape.xhtml"></ui:include>
	</f:view>
	
</h:body>
</html>